const obj1 = {
  name:'xiecheng',
  age:34,
  school:'imooc',
  course: 'es'
}

const {name, age, ...rest} = obj1
console.log(name);
console.log(age);
console.log(rest);